# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=goffice
pkgver=0.10.57
pkgrel=0
_maj=${pkgver%%.*}
_min=${pkgver#$_maj.}
_min=${_min%%.*}
pkgdesc="Library of document-centric objects and utilities built on top of GLib and Gtk+"
url="https://www.gnome.org/"
arch="all"
license="GPL-2.0-or-later OR GPL-3.0-or-later"
makedepends="
	autoconf
	automake
	cairo-dev
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	gtk-doc
	intltool
	libgsf-dev
	librsvg-dev
	libtool
	libxml2-dev
	libxslt-dev
	"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/goffice/$_maj.$_min/goffice-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
be5a9f269dc8d1177df5a98b2294cf2344548eb7512c8937682eaabb09f6dce700b66990552e3ba6e1c8bc58f3d748136c63f5011da048ec1d415ef547f76dfc  goffice-0.10.57.tar.xz
"
